<template>
  <div class="wrapper">
    <div class="image-container">
      <b-img :src="imgSrc" />
    </div>
    <div class="content-container">
      <p class="news-title">{{ title }}</p>
      <p class="news-summary">{{ content }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true,
    },
    content: {
      type: String,
      default: '',
    },
    date: {
      type: String,
      required: true,
    },
    imgSrc: {
      type: String,
      required: true,
    },
  },
};
</script>

<style lang="scss" scoped>
.wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 24px;
}
.image-container {
  flex-basis: 33.3%;
  flex-shrink: 0;
  flex-grow: 0;
  img {
    width: 100%;
    height: auto;
  }
  overflow: hidden;
}
.content-container {
  flex: 0 0 66.6%;
  width: 1px;
  margin-left: 16px;
}
.news-title {
  font-size: 16px;
  color: #000000;
  line-height: 22px;
  letter-spacing: 0.57px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-summary {
  height: 56px;
  font-size: 13px;
  color: #9b9b9b;
  line-height: 18px;
  letter-spacing: 0.46px;
  margin: 0px;
  overflow: hidden;
}
.card {
  background-color: transparent;
  border: none;
}
.img-wrapper {
  // max-width: 132px;
  display: flex;
  justify-content: flex-end;
  padding-right: 32px;
}
img {
  width: 132px;
  height: 88px;
}
.card-body {
  padding: 0;
}
.card-title {
  font-size: 16px;
  color: #000000;
  line-height: 22px;
  letter-spacing: 0.57px;
  margin-bottom: 0px;
}
.card-text {
  font-size: 13px;
  color: #9b9b9b;
  line-height: 18px;
  letter-spacing: 0.46px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-bottom: 0px;
}
.news-date {
  font-size: 12px;
  color: #9b9b9b;
  line-height: 17px;
  letter-spacing: 0.5px;
  margin-bottom: 0px;
}
</style>
